<?php
// 本类由系统自动生成，仅供测试用途
class OrderselAction extends Action {
    public function index(){
    	if ($_POST['shop_no'] && $_POST['shop_no']!=''){
    		
			$model = M('OrderInfo');
			
			$map['shop_no'] = $_POST['shop_no'];
			
			$list = $model->where($map)->field('order_no,u_id,shop_no,total_price,order_time,add_time,commission')->order('add_time desc')->limit(20)->select();
			
			if ($list) {
				$this->assign('list',$list);
			}
			
    	}
    	$this->display();
    }
}